package com.wangwenshuo.goods.api;

import com.wangwenshuo.goods.entity.Goods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "GOODS-CLIENT01",url = "http://localhost:8083")
public interface GoodsApi {
    @RequestMapping("selects")
    public String selectGoods(@RequestBody Goods goods,@RequestParam("pageNum") Integer pageNum,@RequestParam("pageSize") Integer pageSize);

    @RequestMapping("del")
    public String del(@RequestParam("ids")String ids);

    @RequestMapping("getById")
    public String getById(@RequestParam("id")Integer id);

    @RequestMapping("save")
    public String save(@RequestBody Goods goods);
}
